﻿@{
    Layout = null;
}

<!DOCTYPE html>

<html>
<head>
    <meta name="viewport" content="width=device-width" />
    <title>Detail</title>
    <link href="~/Scripts/ligerUI/skins/Aqua/css/ligerui-all.css" rel="stylesheet" />
    <link href="~/Scripts/ligerUI/skins/ligerui-icons.css" rel="stylesheet" />
    <link href="~/Scripts/ligerUI/skins/Gray/css/all.css" rel="stylesheet" />
    <link href="~/Content/css/common.css" rel="stylesheet" />
    <script src="~/Scripts/jquery-1.10.2.min.js" type="text/javascript"></script>
    <script src="~/Scripts/ligerUI/js/ligerui.all.js"></script>
    <script src="~/Scripts/common.js"></script>
    <link href="~/Scripts/laydate/theme/default/laydate.css" rel="stylesheet" />
    <script src="~/Scripts/laydate/laydate.js"></script>
    
    <script>
        var manager;
        $(function () {
            initTable();
        });

        ///加载列表
        function initTable() {
            var data = getDetailData();
            manager = $("#maingrid").ligerGrid({
                height: '100%',
                heightDiff: 25,
                data: data,
                usePager: false,
                frozen: false,
                columns:
                            [
                            { display: '诊疗内容', name: 'OrderID', width: 200 },
                            { display: '执行人', name: 'Freight', width: 100 },
                            { display: '执行时间', name: 'ShipName', width: 100 },
                            { display: '备注', name: 'ShipAddress'},
                            ]
            });
        }

        //获取详情数据
        function getDetailData() {
            var data = { Rows: [{ "OrderID": 10248, "CustomerID": "VINET", "EmployeeID": 5, "OrderDate": new Date(775958400000), "RequiredDate": new Date(778377600000), "ShippedDate": new Date(776995200000), "ShipVia": 3, "Freight": 32.38, "ShipName": "Vins et alcools Chevalier", "ShipAddress": "59 rue de l'Abbaye", "ShipCity": "Reims", "ShipRegion": null, "ShipPostalCode": "51100", "ShipCountry": "France" }, { "OrderID": 10249, "CustomerID": "TOMSP", "EmployeeID": 6, "OrderDate": new Date(776044800000), "RequiredDate": new Date(779673600000), "ShippedDate": new Date(776476800000), "ShipVia": 1, "Freight": 11.61, "ShipName": "Toms Spezialitäten", "ShipAddress": "Luisenstr. 48", "ShipCity": "Münster", "ShipRegion": null, "ShipPostalCode": "44087", "ShipCountry": "Germany" }, { "OrderID": 10250, "CustomerID": "HANAR", "EmployeeID": 4, "OrderDate": new Date(776304000000), "RequiredDate": new Date(778723200000), "ShippedDate": new Date(776649600000), "ShipVia": 2, "Freight": 65.83, "ShipName": "Hanari Carnes", "ShipAddress": "Rua do Paço, 67", "ShipCity": "Rio de Janeiro", "ShipRegion": "RJ", "ShipPostalCode": "05454-876", "ShipCountry": "Brazil" }] };
            return data;
        }
    </script>

</head>
<body>
    <div>
        <div id="maingrid"></div>
    </div>
</body>
</html>
